package com.woniu.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.entity.dto.QueryUserFeedBackDTO;
import com.woniu.entity.vo.UserFeedBackVo;
import com.woniu.pojo.User;
import com.woniu.pojo.UserFeedback;
import org.apache.ibatis.annotations.Select;

/**
* @author Ma.Lei
* @description 针对表【t_user_feedback】的数据库操作Mapper
* @createDate 2022-12-16 23:28:31
* @Entity generator.domain.UserFeedback
*/
public interface UserFeedbackMapper extends BaseMapper<UserFeedback> {

    @Select("select tu.user_name,tu.phone from t_user as tu inner join t_user_feedback as tuf on tu.id = tuf.user_id where tu.id=#{id}")
    User getByUser(String id);


    IPage<UserFeedBackVo> selectPageUser(IPage<UserFeedBackVo> page, QueryUserFeedBackDTO queryUserFeedBackDTO);
}




